import KeyTipLess from "./KeyTip.module.less";

function KeyTip({ KeyTipsList, onClickTips }) {
  const Dianji = (item) => {
    console.log(333, item);

    onClickTips(item);
  };
  return (
    <>
      <div className={KeyTipLess.keyTip_content}>
        {KeyTipsList.map((item: any, index: number) => {
          return (
            <div
              className="Tips_item"
              key={index}
              onMouseDown={() => Dianji(item.SearchSuggestionsName)}
            >
              {item.SearchSuggestionsName}
            </div>
          );
        })}
      </div>
    </>
  );
}

export default KeyTip;
